package com.kc.business.mapper;


import com.kc.business.domain.BizBusinessOrder;
import com.kc.business.domain.dto.BizBusinessOrderNumByStatusDTO;
import com.kc.common.core.dao.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BizBusinessOrderMapper extends BaseMapper<BizBusinessOrder> {
    List<BizBusinessOrder> dateStatistics(@Param("date") String date,@Param("status") Integer status);

    /**
     * 获取商家统计金额
     * @param businessId
     * @param yearDay
     * @param yearMonth
     * @return
     */
    Double getStatisticsMoney(@Param("businessId") Integer businessId, @Param("yearDay") String yearDay,@Param("yearMonth") String yearMonth);

    /**
     * 获取不同状态下订单数量
     * @return
     */
    List<BizBusinessOrderNumByStatusDTO> getOrderNumByStatus(@Param("businessId") Integer businessId);

    /**
     * 商家订单总收入
     * @param businessId
     * @return
     */
    Double getBusinessOrderIncome(@Param("businessId") Integer businessId);

    /**
     * 获取订单列表
     * @param bizBusinessOrder
     * @return
     */
    List<BizBusinessOrder> getOrderList(BizBusinessOrder bizBusinessOrder);

}
